package com.epam.menu;

import java.util.ArrayList;
import java.util.List;

import com.epam.stone.PreciousStone;

public abstract class MenuItem {
	private String commandName;
	private String id;
	static public List<PreciousStone> necklace=new ArrayList<PreciousStone>();
	
	protected MenuItem(String commandName,String id) {
		this.commandName = commandName;
		this.id=id;
	}
	
	public abstract boolean execute();
	
	public String getCommandName() {
		return commandName;
	}

	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	protected void printFrame() {
		System.out.println("|"+commandName+"|");
	}
}
